package com.example.demo.mapper;

import com.example.demo.pojo.BackRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper {
    List<BackRole> roleList(
            @Param("id") int id,
            @Param("name") String name
    );



//修改
    void updateRole(
            @Param("name") String name,
            @Param("seq")  int seq

    );
//插入
    void roleInsert(
            @Param("role") String role

    );
//删除
    void roleDelete(
            @Param("id") int id

    );
}
